Skip to content

fix(claude): #551 — auto-continue outbox + UX + chore: staging 0.35.3rc18 + Task 4b#554

Merged
Nathan Schram (nathanschram) merged 1 commit into
devfrom
fix/551-auto-continue-and-rc18-chore
May 17, 2026
Merged

fix(claude): #551 — auto-continue outbox + UX + chore: staging 0.35.3rc18 + Task 4b#554
Nathan Schram (nathanschram) merged 1 commit into
devfrom
fix/551-auto-continue-and-rc18-chore

Conversation

@nathanschram
Copy link
Copy Markdown
Member

Summary

Third of three rc18 PRs (companions: #552 #550, #553 #333). This PR ships the #551 auto-continue fixes, the Task 4b stall-suppression counter, and the rc18 version bump + CHANGELOG entry covering all three issues.

What changed

#551 — auto-continue outbox + UX (Tier 0 + Tier 1)

Tier 0 — pre-swap outbox delivery (functional): at the auto-continue trigger site in runner_bridge.py, call deliver_outbox_files before subprocess 2 spawns. Without this, files written by subprocess 1 during the stuck-after-tool-results window were orphaned (subprocess 2 starts fresh and never scans the original outbox). ~3.6 % silent loss observed on lba-1; this PR closes it. Failure to deliver does NOT block auto-continue itself — the recovery is more important than any single batch of files.

Tier 1 — UX recovery signal: changed the chat-side notice text from ⚠️ Auto-continuing — Claude stopped before processing tool results to 🔁 Auto-resuming session after upstream Claude Code event. The 🔁 prefix signals recovery rather than failure and discourages users from /cancel-ing the salvage. Extracted into _format_auto_continue_notice() for testability.

Tier 2/3/4 (catalog-staleness window, rate-limit-aware deferral, registry preservation) deferred per rc18 scope decision.

Task 4b — stall-suppression counter

  • JsonlStreamState.stall_suppression_counts: dict[str, int]
  • _bump_stall_suppression(reason) helper increments at three suppression sites: expected_wait (auto-cancel suppression), post_result (notification), children_active (sleeping-main + active children).
  • session.summary now includes stall_suppressions=expected_wait:N,post_result:N,children_active:N so log audits can see suppression cascades without parsing nested JSON.

chore: rc18

Files

  • src/untether/runner.pyJsonlStreamState.stall_suppression_counts
  • src/untether/runner_bridge.py — pre-swap outbox delivery, reworded notice + helper, _bump_stall_suppression(), session.summary integration, increments at suppression sites
  • pyproject.toml + uv.lock — version bump
  • CHANGELOG.md — rc18 entry
  • tests/test_exec_bridge.py — 4 new tests (2 notice, 2 stall counter)

Test plan

  • uv run pytest — 2675 passed, 2 skipped, no regressions (was 2671 on dev; +4 new tests)
  • uv run ruff format --check src/ tests/ clean
  • uv run ruff check src/ clean
  • uv lock --check passes
  • python scripts/validate_release.py — rc18 detected, pre-release validation skipped (per release-discipline.md)
  • Tier 1 integration on @untether_dev_bot: send a prompt, verify Claude responds, footer correctly populated. (Pending rc18 build.)
  • Tier 7 integration on @untether_dev_bot: /ping, /usage, /config, /planmode, /verbose all functional.
  • Manual auto-continue check: if a real last_event_type=user exit can be reproduced on @untether_dev_bot, verify (a) outbox files delivered pre-swap, (b) 🔁 notice appears in chat, (c) subprocess 2 spawns cleanly.

Closes #551.

Merge order (suggested)

To make CHANGELOG conflicts trivial: merge in the order PR 1 (#552 #550) → PR 2 (#553 #333) → PR 3 (this one, #551 + rc18). This PR contains the CHANGELOG version bump that references both other issues, so merging it last means the other two PRs don't touch the changelog.

🤖 Generated with Claude Code

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d669f5f7-0c25-413c-a9c4-4d47a17d3d2d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/551-auto-continue-and-rc18-chore

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…: staging 0.35.3rc18 + Task 4b

Three independent rc18 changes shipped together. The two #333 / #550
fixes are on separate PRs (fix/333-post-result-hang, fix/550-ask-question-keyboard-clear).

- **Tier 0 — pre-swap outbox delivery (functional, ~3.6 % silent loss
  fix):** At the auto-continue trigger site (runner_bridge.py:~2935),
  call deliver_outbox_files BEFORE subprocess 2 spawns. Without this,
  files written by subprocess 1 during the stuck-after-tool-results
  window were orphaned (subprocess 2 starts fresh, never scans the
  outbox). Delivery is best-effort — a failure logs
  outbox.auto_continue_delivery_failed and does NOT block auto-continue.
- **Tier 1 — reworded notice (UX):** changed the chat-side text from
  "⚠️ Auto-continuing — Claude stopped before processing tool results"
  to "🔁 Auto-resuming session after upstream Claude Code event". The
  🔁 prefix signals recovery rather than failure and discourages
  /cancel-ing the salvage. Extracted into a small
  _format_auto_continue_notice() helper for testability.

Task 4b — stall-suppression counter:
- JsonlStreamState.stall_suppression_counts: dict[str, int].
- _bump_stall_suppression(reason) helper increments at three suppression
  sites: expected_wait (auto-cancel suppression), post_result
  (notification suppression), children_active (sleeping-main + active
  children).
- session.summary now includes
  stall_suppressions=expected_wait:N,post_result:N,children_active:N
  so log audits can see suppression cascades without parsing nested JSON.

chore: version bump 0.35.3rc17 → 0.35.3rc18 in pyproject.toml; uv.lock
synced. CHANGELOG.md entry for v0.35.3rc18 covers #333 + #550 + #551
(the other two PRs reference the same entry).

Tests (4 new):
- test_exec_bridge.py:
  - test_551_auto_continue_notice_first_attempt
  - test_551_auto_continue_notice_repeat_attempt
  - test_4b_bump_stall_suppression_records_counts
  - test_4b_stall_suppression_count_bumped_on_post_result

Full suite: 2675 passed, 2 skipped.

preservation) deferred per scope decision in the rc18 plan.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nathanschram Nathan Schram (nathanschram) force-pushed the fix/551-auto-continue-and-rc18-chore branch from 7a25e5b to ddba754 Compare May 17, 2026 05:09
@nathanschram Nathan Schram (nathanschram) merged commit 001ad0e into dev May 17, 2026
21 checks passed
@nathanschram Nathan Schram (nathanschram) deleted the fix/551-auto-continue-and-rc18-chore branch May 17, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant